package com.library.books.mapper;

import com.library.common.gdxx.domain.req.BookBorrowPushReq;
import com.library.common.gdxx.domain.req.BookInfoPushReq;

import java.util.List;

/**
 * @Package: com.library.books.mapper
 * @ClassName: GDXXPushServiceMapper
 * @Author: Yin
 * @Date: 17:09
 * @Description: 此文件描述信息
 */
public interface GDXXPushServiceMapper {

    /**
     * 根据副本id-查询数据库将推送的参数查询出来
     * @param copyIds 查询的副本id
     * @return 查询结果
     */
    List<BookInfoPushReq> selectPushBookInfoParams(List<Long> copyIds);

    /**
     * 根据借阅id-查询数据库将推送的参数查询出来
     *  - 借阅时查询
     *  - 续借时查询
     *  - 归还时查询
     *  不区分状态
     * @param borrowIds 借阅id
     * @return 返回结果
     */
    List<BookBorrowPushReq> selectPushBookBorrowInfoParams(List<Long> borrowIds);
}
